package mvc.ation;

import java.util.HashMap;
import java.util.Map;

import mvc.form.ActionForm;
import mvc.form.LoginForm;

public class LoginAction implements Action {

	@Override
	public Map<String,String> excute(ActionForm aform) {
		LoginForm form  = (LoginForm)aform;
		String message = "失败";
		String pageP = "shib";
		if("zc".equals(form.getName()) && "123".equals(form.getPassword())){
			message="成功";
			pageP = "success";

		}
		Map<String,String> info = new HashMap<String, String>();
		info.put(pageP, message);
		return info;
	}

}
